import java.util.Arrays;

public class Test02 {
    public static void func(int[] arr){
        int[] newArr = new int[arr.length];
//        arr = newArr;
//        for(int x:arr){
//            arr[x] = 0;
//        }
        for (int i = 0;i<arr.length;i++){
            arr[i] = 0;
        }
    }
    public static void main(String[] args) {
        int[] arr = new int[]{1,2,3};
        func(arr);
        System.out.println(Arrays.toString(arr));
    }
}
